import requests, pprint

from requests.sessions import session

url = 'http://127.0.0.1:8210/api/sign'
body = {
    "action" : "signin",
    "username": "fangfang",
    "password": "88888888"
}

session = requests.session()
session.post(url, json=body)

url2 = 'http://127.0.0.1:8210/api/account'
info = {
    "action": "addone",
    "data": {
        "realname" : "扁鹊",
        "username" : "bianque",
        "password" : "22222222",
        "studentno": "80000002",
        "desc": "优秀学员",
        "usertype" : 2000
    }
}
res = session.post(url2, json=info)

pprint.pprint(res.text, sort_dicts=0)